package com.itheima.extendsDemo1;

public class Test {
    public static void main(String[] args) {
        // 创建一个新老师对象
        Teacher t = new Teacher();
        t.setName("小王讲师");
        t.setAge(18);
        t.setSkill("java 前端 大数据");

        System.out.println(t.getName());
        System.out.println(t.getAge());
        System.out.println(t.getSkill());
        System.out.println("------------------------------------------");
        // 创建一个新咨询师
        Zixun z = new Zixun();
        z.setName("小李咨询师");
        z.setAge(18);
        z.setNumber(100);
        System.out.println(z.getName());
        System.out.println(z.getAge());
        System.out.println("咨询人数"+z.getNumber());

    }
}
